package flow.model;

import flow.base.MyPoint;
import flow.conf.Configuration.MarkerType;
import flow.conf.Configuration.ModelType;
import flow.conf.Configuration.ShapeType;

public class MarkerModel extends BlockModel{
	MarkerType markerType;
	public BaseModel owner;
	static final double radius =4;
	ShapeType shapeType = ShapeType.circle;
	public MyPoint bindingPoint;
	public  MarkerModel(MyPoint point,BlockModel blockModel,MarkerType markerType){
		super();
		width=height=4;
		this.modelType=modelType.marker;
		owner =blockModel;
		this.markerType=markerType;
		LUPoint=new MyPoint(point.x-radius,point.y-radius);
		RDPoint=new MyPoint(point.x+radius,point.y+radius);
		selected=true;
	}
	public  MarkerModel(MyPoint point,LineModel lineModel,MarkerType markerType){
		super();
		width=height=4;
		this.modelType=modelType.marker;
		owner =lineModel;
		this.markerType=markerType;
		LUPoint=new MyPoint(point.x-radius,point.y-radius);
		RDPoint=new MyPoint(point.x+radius,point.y+radius);
		selected=true;
	}
	

	

}
